<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>EasyTalk Administrator's Control Panel</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta content="H.Joeson" name="Copyright" />
		<link rel="stylesheet" href="<{$res}>/css/style.css" type="text/css" media="all" />
		<script src="<{$res}>/js/jquery.js" type="text/javascript"></script>
		<script src="<{$res}>/js/admin.js" type="text/javascript"></script>
	</head>
	<body>
		<div id="bodymain">
			<div class="title"></div>
			<div class="content">
				
				<h3>勋章管理</h3>
				
					<table class="table" style="margin:5px 0 20px 0">
						<tr style="font-weight:bold">
							<td width="100px">编号</td>
							<td width="150px">勋章名称</td>
							<td width="150px">勋章图片</td>
							<td width="150px">勋章描述</td>
							<td width="150px">时间</td>
							<td width="150px">操作</td>
						</tr>

									
				<form method="POST" action="<{$root}>/admin.php/verify/insert" enctype="multipart/form-data">
					<tr>
						<td width="100px">添加勋章：</td>
						<td width="150px"><input name="name" type="text"/></td>
						<td width="150px"><input name="pic" type="file"/></td>
						<td width="150px"><input name="content" type="text"/></td>
						<td width="150px"></td>
						<td width="150px"><input type="submit"></td>
					</tr>
				</form>	
				
						<{foreach $szgl as $aa}>
							<tr id="">
								<td width="100px"><{$aa.id}></td>
								<td width="150px"><{$aa.name}></td>
								<td width="150px"><img src="<{$public}>/uploads/xunzhang/<{$aa.pic}>"></td>
								<td width="150px"><{$aa.content}></td>
								<td width="150px"><{$aa.time|date_format:"%D"}></td>
								<td width="150px"><a href="<{$root}>/admin.php/verify/delete/id/<{$aa.id}>">删除</a></td>
														
							</tr>
						<{/foreach}>
					</table>
				
				<script type="text/javascript">
					$('#sprovince').change(function(){
						var pid=$('#sprovince').val();
						if (parseInt(pid)>0) {
							window.location.href="admin.php?s=/District/index/type/loadcity/pid/"+pid+"/level/2";
						} else {
							window.location.href="admin.php?s=/District";
						}
					});
					function editname(id){
						$('#name'+id).attr('class','txt_input');
						$('#name'+id).removeAttr('readonly');
						$('#icon'+id).attr('class','txt_input');
						$('#icon'+id).removeAttr('readonly');
						$('#title'+id).attr('class','txt_input');
						$('#title'+id).removeAttr('readonly');
					}
					function delname(id){
						if (confirm('是否确定要删除该分组？')) {
							$('#tr'+id).remove();
						}
					}
					function addname() {
						$('#addbtn').before('<tr><td>&nbsp;</td><td><input type="text" name="newgroup[name][]" value="" class="txt_input" style="width:150px"></td><td><input type="text" name="newgroup[iconurl][]" value="" class="txt_input" style="width:150px"></td><td><input type="text" name="newgroup[titleurl][]" value="" class="txt_input" style="width:150px"></td><td></td></tr>');
					}
				</script>
			</div>
		</div>
	</body>
</html>